package com.pignest.hotel.test.report;

import java.util.Date;

import com.pignest.framework.test.SpringTestCase;
import com.pignest.hotel.beans.report.CheckoutSummary;
import com.pignest.hotel.service.ReportService;
import com.pignest.hotel.spring.Services;
import com.pignest.hotel.util.DateUtil;

public class ReportTestCase extends SpringTestCase {

	public void testCheckoutSummary() {
		ReportService service = Services.getReportService();
		Date endTime = new Date();
		Date startTime = new Date(endTime.getTime() - DateUtil.ONE_WEEK * 10);
		CheckoutSummary summary = service.reportCheckoutSummary(startTime, endTime);
		System.out.println(summary);
	}
	
}
